import { searchArticlesInfo, searchCoursesInfo } from "@/type/search"
import request from "@/utils/request"

//搜索文章
export const searchArticles=(data:searchArticlesInfo)=>{
    return request({
        url:'/search/articles',
        method:'get',
        params:data
    })
}

//搜索课程
export const searchCourses=(data:searchCoursesInfo)=>{
    return request({
        url:'/search/courses',
        method:'get',
        params:data
    })
}